<!DOCTYPE HTML>
<html lang="pl">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="author" content="Grzegorz Ł. Janik" />
	<title>Multimedio</title>

	<link href="/static/css/bootstrap.min.css" rel="stylesheet">
	<link href="/static/css/basic.css" rel="stylesheet">

	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
	<script src="/static/js/bootstrap.min.js"></script>
	<script src="/static/js/yt.js" type="text/javascript" charset="utf-8"></script>
	<script src="/static/js/basic.js"></script>
</head>

<body>

	<div id="login" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="loginLabel" aria-hidden="false">
		<div class="modal-header">
			<h3 id="loginLabel">{{ label }}</h3>
		</div>
		<div class="modal-body">
			<form action="{{form_action}}" method="POST" class="form-horizontal">
			{% csrf_token %}
			{% if request.user.is_authenticated == False %}
			<div class="alert alert-error">
				<button type="button" class="close" data-dismiss="alert">×</button>
				Użytkownik jest nieaktywny
			</div>
			{% endif %}
			{% for error in form.errors.itervalues %}
			{{ error|safe }}
			{% endfor %}
			{% for field in form %}
				<div class="control-group">
					{{ field.label_tag }}
					<div class="controls">
						{{ field }}
					</div>
				</div>
			{% endfor %}
		</div>
		<div class="modal-footer">
			<a href="{{ next_url }}" class="btn" aria-hidden="true">Anuluj</a>
			<button class="btn btn-primary" type="submit">{{ button_label }}</button>
			</form>
		</div>
	</div>
</body>
</html>
